package com.SpringMVC.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author:liuwei
 * @creatdate:2022-03-03-11:24
 */
@Controller
public class ViewController {
	@RequestMapping("/testThyMeleafView")
	public String testThyMeleafView(){
		return "success";
	}
	@RequestMapping("/tetsForWard")
	public String testForWard(){
		return "forward:/testThyMeleafView";
	}

	@RequestMapping("/tetsRedirect")
	public String tetsRedirect(){
		return "redirect:/testThyMeleafView";
	}
}
